import type { App } from "vue";
import { provideGlobalConfig } from "@/components/windows/components/config-provider/src/hooks/use-global-config.ts";
import appsIndex from "@/config/apps.ts";
import { provideRouter } from "@/components/windows/hooks/use-default-router";
import type { Router } from "vue-router";
const apps = appsIndex;

export default {
  registerApps: (vueApp: App<Element>) => {
    provideGlobalConfig({
      apps,
    }, vueApp, true);
  },
  registerRouter(router: Router) {
    provideRouter(router)
  }
};